home *** CD-ROM | disk | FTP | other *** search
/ Games Gallery 98 / Games Gallery 98 - Disc 1.iso / Content / HENGE / Henge.exe / Henge.dxr / Graphics_11_Sound On Button up.ls < prev    next >
Encoding:
Text File  |  1998-02-15  |  891 b   |  25 lines

  1. on mouseDown
  2.   set channel to the clickOn
  3.   set the member of sprite channel to member "Sound On Button dn"
  4.   set the member of sprite (channel - 1) to member "Sound Off Button up"
  5.   updateStage()
  6.   repeat while the stillDown
  7.     if rollOver(channel) then
  8.       set the member of sprite channel to member "Sound On Button dn"
  9.       set the member of sprite (channel - 1) to member "Sound Off Button up"
  10.     else
  11.       set the member of sprite channel to member "Sound On Button up"
  12.       set the member of sprite (channel - 1) to member "Sound Off Button dn"
  13.     end if
  14.     updateStage()
  15.   end repeat
  16.   if rollOver(channel) then
  17.     set the member of sprite channel to member "Sound On Button dn"
  18.     set the member of sprite (channel - 1) to member "Sound Off Button up"
  19.     updateStage()
  20.     puppetSound(0)
  21.     set the soundEnabled to 1
  22.     puppetSound(2, "Background Noise")
  23.   end if
  24. end
  25.